package com.idev.module.user.domain;

import lombok.Data;

import java.io.Serializable;

/**
 * Created by yigeyanse on 2017/6/16.
 */
@Data
public class User implements Serializable{
    public User(String userName,Integer age){
        this.userName = userName;
        this.age = age;
    }

    private Integer id;
    private String userName;
    private Integer age;

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", age=" + age +
                '}';
    }
}
